var o;
avalon.ready(function(){
	o = avalon.define({
		$id:"root",
		currentType:-1,
		ChooseType:function(tabId){
            o.currentType=tabId;
        },
	});
	$("#all").click(function () {
        location.href="/user/toCapital?data_type="+0;
    })
    $("#chongzhi").click(function () {
        location.href="/user/toCapital?data_type="+1;
    })
    $("#tixian").click(function () {
        location.href="/user/toCapital?data_type="+2;
    })
    $("#kaicang").click(function () {
        location.href="/user/toCapital?data_type="+3;
    })
    $("#jiesuan").click(function () {
        location.href="/user/toCapital?data_type="+4;
    })
	avalon.scan(document.body);
})
